package com.xuan.model;
import java.util.Objects;
public class Order_details {
    private int order_id;
    private Section accompanying_play_id;
    private int play_time;
    private int order_price;

    public Order_details() {
    }

    public Order_details(int order_id, Section accompanying_play_id, int play_time, int order_price) {
        this.order_id = order_id;
        this.accompanying_play_id = accompanying_play_id;
        this.play_time = play_time;
        this.order_price = order_price;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public Section getAccompanying_play_id() {
        return accompanying_play_id;
    }

    public void setAccompanying_play_id(Section accompanying_play_id) {
        this.accompanying_play_id = accompanying_play_id;
    }

    public int getPlay_time() {
        return play_time;
    }

    public void setPlay_time(int play_time) {
        this.play_time = play_time;
    }

    public int getOrder_price() {
        return order_price;
    }

    public void setOrder_price(int order_price) {
        this.order_price = order_price;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Order_details)) return false;
        Order_details that = (Order_details) o;
        return order_id == that.order_id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(order_id);
    }

    @Override
    public String toString() {
        return "Order_details{" +
                "order_id=" + order_id +
                ", accompanying_play_id=" + accompanying_play_id +
                ", play_time=" + play_time +
                ", order_price=" + order_price +
                '}';
    }
}
